package com.ninjas.module.error.service.impl;

import com.ninjas.module.common.page.Page;
import com.ninjas.module.error.domain.model.UserOptLog;
import com.ninjas.module.error.enums.OptType;
import com.ninjas.module.error.mapper.UserOptLogMapper;
import com.ninjas.module.error.service.UserOptLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserOptLogServiceImpl implements UserOptLogService {

    @Autowired
    private UserOptLogMapper userOptLogMapper;

    @Page
    @Override
    public List<UserOptLog> pageList(OptType optType) {
        return userOptLogMapper.list(optType.getCode());
    }
}
